package com.luokangtao.order;

import com.luokangtao.common.util.RedisLockUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author luokangtao
 * @create 2019-07-28 13:06
 */
@SpringBootApplication(scanBasePackages = {"com.luokangtao"})
@EnableSwagger2
@EnableEurekaClient
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }

    @Bean
    public RedisLockUtil redisLockUtil(){
        return new RedisLockUtil();
    }
}
